/*
@Time : 2020/7/30 10:20
@Author : lym
@File : User.go
@Software: GoLand
*/
package model

import "github.com/jinzhu/gorm"

/**
binding:"required" 校验器,校验非空
如果有多个校验器中间用,隔开,格式如下:
binding:"required,mustBig
*/
type User struct {
	gorm.Model
	UserName  string `json:"username" binding:"required" gorm:"type:varchar(20);not null"`
	Telephone string `json:"telephone" binding:"required,mustBig" gorm:"type:varchar(110);unique"`
	PassWord  string `json:"password" gorm:"size:255;not null"`
}
